import request from '@/utils/request'

// 查询分享列表
export function listBlogShares(query) {
  return request({
    url: '/blog/blogShares/list',
    method: 'get',
    params: query
  })
}

// 查询分享详细
export function getBlogShares(shareId) {
  return request({
    url: '/blog/blogShares/' + shareId,
    method: 'get'
  })
}

// 新增分享
export function addBlogShares(data) {
  return request({
    url: '/blog/blogShares',
    method: 'post',
    data: data
  })
}

// 修改分享
export function updateBlogShares(data) {
  return request({
    url: '/blog/blogShares',
    method: 'put',
    data: data
  })
}

// 删除分享
export function delBlogShares(shareId) {
  return request({
    url: '/blog/blogShares/' + shareId,
    method: 'delete'
  })
}
